package com.wave.spring.jpa;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.io.Serializable;

/**
 * Created by lv on 2017/8/27.
 */
public interface CustomRepository<T,ID extends Serializable> extends JpaRepository<T,ID> ,JpaSpecificationExecutor<T>{
  Page<T> finaByAuto(T example, Pageable pageable);
}
